package com.ims.core.doc.service.impl;

import java.util.List;
import com.ims.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ims.core.doc.mapper.TInAccountingQueryPoivMapper;
import com.ims.core.doc.domain.TInAccountingQueryPoiv;
import com.ims.core.doc.service.ITInAccountingQueryPoivService;

/**
 * 海关缴款书报账单查询Service业务层处理
 *
 * @author IMS
 * @date 2024-12-03
 */
@Service
public class TInAccountingQueryPoivServiceImpl implements ITInAccountingQueryPoivService
{
    @Autowired
    private TInAccountingQueryPoivMapper tInAccountingQueryPoivMapper;

    /**
     * 查询海关缴款书报账单查询
     *
     * @param id 海关缴款书报账单查询主键
     * @return 海关缴款书报账单查询
     */
    @Override
    public TInAccountingQueryPoiv selectTInAccountingQueryPoivById(Long id)
    {
        return tInAccountingQueryPoivMapper.selectTInAccountingQueryPoivById(id);
    }

    /**
     * 查询海关缴款书报账单查询列表
     *
     * @param tInAccountingQueryPoiv 海关缴款书报账单查询
     * @return 海关缴款书报账单查询
     */
    @Override
    public List<TInAccountingQueryPoiv> selectTInAccountingQueryPoivList(TInAccountingQueryPoiv tInAccountingQueryPoiv)
    {
        return tInAccountingQueryPoivMapper.selectTInAccountingQueryPoivList(tInAccountingQueryPoiv);
    }

    /**
     * 新增海关缴款书报账单查询
     *
     * @param tInAccountingQueryPoiv 海关缴款书报账单查询
     * @return 结果
     */
    @Override
    public int insertTInAccountingQueryPoiv(TInAccountingQueryPoiv tInAccountingQueryPoiv)
    {
        tInAccountingQueryPoiv.setCreateTime(DateUtils.getNowDate());
        return tInAccountingQueryPoivMapper.insertTInAccountingQueryPoiv(tInAccountingQueryPoiv);
    }

    /**
     * 修改海关缴款书报账单查询
     *
     * @param tInAccountingQueryPoiv 海关缴款书报账单查询
     * @return 结果
     */
    @Override
    public int updateTInAccountingQueryPoiv(TInAccountingQueryPoiv tInAccountingQueryPoiv)
    {
        tInAccountingQueryPoiv.setUpdateTime(DateUtils.getNowDate());
        return tInAccountingQueryPoivMapper.updateTInAccountingQueryPoiv(tInAccountingQueryPoiv);
    }

    /**
     * 批量删除海关缴款书报账单查询
     *
     * @param ids 需要删除的海关缴款书报账单查询主键
     * @return 结果
     */
    @Override
    public int deleteTInAccountingQueryPoivByIds(Long[] ids)
    {
        return tInAccountingQueryPoivMapper.deleteTInAccountingQueryPoivByIds(ids);
    }

    /**
     * 删除海关缴款书报账单查询信息
     *
     * @param id 海关缴款书报账单查询主键
     * @return 结果
     */
    @Override
    public int deleteTInAccountingQueryPoivById(Long id)
    {
        return tInAccountingQueryPoivMapper.deleteTInAccountingQueryPoivById(id);
    }
}
